﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Framework.Define;
using Framework.Manager;
using Framework.Util;
using Game.UI;


public class Main : MonoBehaviour
{
    private void Awake()
    {
        GameObject globalGameObject = UtilCollection.GameObjectUtil.FindGameObject(FrameworkDefine.GlobalGameObjectPath);
        if (globalGameObject)
            DontDestroyOnLoad(globalGameObject);
    }

    // Start is called before the first frame update
    private void Start()
    {
        ManagerCollection.InitManager();
        ManagerCollection.UIManager.OpenUI<MainPanel>();
    }
}